package com.orange.handler.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orange.handler.AuthItemMapService;
import com.orange.modules.dao.AuthItemMapRepository;
import com.orange.modules.entity.AuthItemMap;

@Service
public class AuthItemMapServiceImpl implements AuthItemMapService{

	@Autowired
	private AuthItemMapRepository authItemMapRepository;
	
	@Override
	public void updateStateBySchool(String id,String state) throws SQLException {
		this.authItemMapRepository.updateStateBySchool(id,state);
	}

	@Override
	public void saveAuthItemMap(AuthItemMap a) {
		this.authItemMapRepository.saveAuthItemMap(a);
		
	}

	@Override
	public AuthItemMap queryOneByCondition(String schoolId, String itemid)
			throws SQLException {
		return this.authItemMapRepository.queryOneByCondition(schoolId, itemid);
	}


}
